package com.ruoyi.web.controller.persion.service;

import com.ruoyi.web.Server.sys.UserService;
import com.ruoyi.web.controller.persion.entity.Favorite ;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public interface IFavoriteService {

    Favorite selectFavoriteById(Long favoriteId);
    
    List<Favorite> selectFavoriteList();
    
    int insertFavorite(Favorite favorite);
    
    int updateFavorite(Favorite favorite);
    
    int deleteFavoriteById(Long favoriteId);
    
    int deleteFavoriteByIds(Long[] favoriteIds);
    
    boolean toggleFavorite(Long userId, Long seedId);
    
    List<Favorite> getUserFavorites(Long userId);
    
    boolean isFavorite(Long userId, Long seedId);
}